{% extends "base.html" %}

{% block title %}Questions{% endblock %}

{% block content %}
	{% if questions %}
	<h2>Questions</h2>
	{% for q in questions %}
		<h3>{{ q.title }} by {{ q.user }}</h3>
		<h4>Description</h4>
		<p>{{ q.description }}</p>
		<h4>Tags</h4>
		<p>{{ q.tags }}</p>	
		<p>Date posted: {{ q.date_posted|date:"D d M Y" }}</p>	
	{% endfor %}
	{% else %}
	<h2>No questions</h2>
	<h3><a href="/questions/ask">Ask some</a></h3>
	{% endif %}
{% endblock %}
